package npap.cater.unr.edu.client.domain;

import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class File {

    /**
	 * @uml.property  name="fileName"
	 */
    @NotNull
    @Size(max = 128)
    private String fileName;

    /**
	 * @uml.property  name="filepath"
	 */
    @NotNull
    @Size(max = 128)
    private String filepath;

    /**
	 * @uml.property  name="filesize"
	 */
    @NotNull
    private long filesize;

    /**
	 * @uml.property  name="contentType"
	 */
    @NotNull
    private String contentType;

    /**
	 * @uml.property  name="ipproject"
	 * @uml.associationEnd  
	 */
    @ManyToOne
    private Project ipproject;
}
